Taken and edited a little bit from https://www.nexusmods.com/dyinglight/mods/947